<?php
/**
 * Formulaire de mise a jour de liste de diffusion
 * @author Etienne AUDOUIN <etienne.audouin@ingesup.com>
 * @author Adrien MARIANELLI <adrien.marianelli@ingesup.com>
 * @version 1.0
 * @package view_mailinglist_update
 */
$listAttributes = array ();
foreach ($lists as $list){
    $listAttributes[$list->id.'_'.$list->id_contacts] = $list->name;
}
echo form_open();
echo form_fieldset('Update a mailing list');
echo '<table id="table_updateList">';
echo '<tr>';
echo '<th>Update contacts within</th>';
echo '<td>'.form_dropdown('select_list', $listAttributes).'</td>';
echo '</tr>';
echo '</table>';
echo form_submit(null, 'Update');
echo form_fieldset_close();
echo form_close();
?>